package com.demo.designmode.factory.myabstract1;

/**
 * @Author: jxm
 * @Description: 抽象工厂测试
 * @Date: 2024-1-10 14:14
 * @Version: 1.0
 */
public class Client {

    public static void main(String[] args) {
        //华为工厂
        SmartProductFactory factory = new HuaweiFactory();
        factory.createSmartCar().printInfo();
        factory.createSmartPhone().printInfo();
        System.out.println("--------");
        //小米工厂
        factory = new XiaomiFactory();
        factory.createSmartCar().printInfo();
        factory.createSmartPhone().printInfo();
    }
}
